
public class CopyFile {

	public void copyFile(){
		String path = "D:\\Program Files\\emule\\tmp";
		java.io.File f = new java.io.File(path);
		java.io.File[] files = f.listFiles();
		for(java.io.File fs:files){
			if(fs.isFile()){
				String name = fs.getName();
				String exname = name.substring(name.lastIndexOf(".")+1).trim();
				if("rm".equals(exname)||"rmvb".endsWith(exname)){
					
				}
			}
		}
		
		
	}
}
